home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / gpen32k / source / lib / osrc / font8.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  408 b   |  23 lines

  1. /*
  2.     共通一般ライブラリー                Okome 1993
  3. */
  4.  
  5. #include    <string.h>
  6. #include    <EGB.H>
  7. #include    <Normlib.h>
  8.  
  9. extern char work[];
  10.  
  11. void font8(int x, int y, char *s, int c)
  12. {
  13.     char pa[256];
  14.     EGB_paintMode(work, 0x22 );
  15.     EGB_color( work, 0, c );
  16.     EGB_textZoom( work, 0, 8, 8 );
  17.     WORD(pa  ) = x;
  18.     WORD(pa+2) = y;
  19.     WORD(pa+4) = strlen(s);
  20.     strcpy( &(pa[6]), s );
  21.     EGB_asciiString( work, 0, pa );
  22. }
  23.